<!DOCTYPE HTML>
<html lang="en" >
    
    <head>
        
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <title>背景样式 | Introduction</title>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="">
        <meta name="generator" content="GitBook 2.6.7">
        
        
        <meta name="HandheldFriendly" content="true"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
        <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">
        
    <link rel="stylesheet" href="../../gitbook/style.css">
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-highlight/website.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-search/search.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-fontsettings/website.css">
        
    
    

        
    
    
    <link rel="next" href="../../First/CSS/元素样式.html" />
    
    
    <link rel="prev" href="../../First/CSS/边框样式.html" />
    

        
    </head>
    <body>
        
        
    <div class="book"
        data-level="2.2.3"
        data-chapter-title="背景样式"
        data-filepath="First/CSS/背景样式.md"
        data-basepath="../.."
        data-revision="Fri Sep 01 2017 15:03:43 GMT+0800 (中国标准时间)"
        data-innerlanguage="">
    

<div class="book-summary">
    <nav role="navigation">
        <ul class="summary">
            
            
            
            

            

            
    
        <li class="chapter " data-level="0" data-path="index.html">
            
                
                    <a href="../../index.html">
                
                        <i class="fa fa-check"></i>
                        
                        Introduction
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1" data-path="First/HTML/html1.html">
            
                
                    <a href="../../First/HTML/html1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.</b>
                        
                        HTML5
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1" data-path="First/HTML/example1.html">
            
                
                    <a href="../../First/HTML/example1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.</b>
                        
                        列表之间的同素异性体
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="First/HTML/example2.html">
            
                
                    <a href="../../First/HTML/example2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.</b>
                        
                        常用标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="First/HTML/example3.html">
            
                
                    <a href="../../First/HTML/example3.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.</b>
                        
                        a标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="First/HTML/example4.html">
            
                
                    <a href="../../First/HTML/example4.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.</b>
                        
                        HTML5新增加的标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="First/HTML/example5.html">
            
                
                    <a href="../../First/HTML/example5.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.5.</b>
                        
                        实体字符和文本格式化
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="First/HTML/example6.html">
            
                
                    <a href="../../First/HTML/example6.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.6.</b>
                        
                        table标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="First/HTML/example7.html">
            
                
                    <a href="../../First/HTML/example7.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.7.</b>
                        
                        form表单与input输入框的运用
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="First/HTML/example8.html">
            
                
                    <a href="../../First/HTML/example8.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.8.</b>
                        
                        块级元素与内联元素的往事
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="First/HTML/example9.html">
            
                
                    <a href="../../First/HTML/example9.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.9.</b>
                        
                        零碎小知识
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="First/HTML/example10.html">
            
                
                    <a href="../../First/HTML/example10.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.10.</b>
                        
                        图像热区与内嵌框架iframe的趣事
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.11" data-path="First/HTML/content.html">
            
                
                    <a href="../../First/HTML/content.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.11.</b>
                        
                        HTML5心得和总结
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2" data-path="First/CSS/css1.html">
            
                
                    <a href="../../First/CSS/css1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.</b>
                        
                        CSS3
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1" data-path="First/CSS/css.html">
            
                
                    <a href="../../First/CSS/css.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.</b>
                        
                        CSS选择器
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1.1" data-path="First/CSS/通配选择器.html">
            
                
                    <a href="../../First/CSS/通配选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.1.</b>
                        
                        通配选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.2" data-path="First/CSS/元素选择器.html">
            
                
                    <a href="../../First/CSS/元素选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.2.</b>
                        
                        元素选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.3" data-path="First/CSS/class选择器和id选择器.html">
            
                
                    <a href="../../First/CSS/class选择器和id选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.3.</b>
                        
                        class选择器和id选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.4" data-path="First/CSS/关系选择器.html">
            
                
                    <a href="../../First/CSS/关系选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.4.</b>
                        
                        关系选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.5" data-path="First/CSS/群组选择器.html">
            
                
                    <a href="../../First/CSS/群组选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.5.</b>
                        
                        群组选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.6" data-path="First/CSS/伪类选择器.html">
            
                
                    <a href="../../First/CSS/伪类选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.6.</b>
                        
                        伪类选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.7" data-path="First/CSS/属性选择器.html">
            
                
                    <a href="../../First/CSS/属性选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.7.</b>
                        
                        属性选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.8" data-path="First/CSS/伪对象选择器.html">
            
                
                    <a href="../../First/CSS/伪对象选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.8.</b>
                        
                        伪对象选择器
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="First/CSS/样式.html">
            
                
                    <a href="../../First/CSS/样式.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.</b>
                        
                        CSS样式分类
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.2.1" data-path="First/CSS/字体样式.html">
            
                
                    <a href="../../First/CSS/字体样式.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.1.</b>
                        
                        字体样式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.2" data-path="First/CSS/边框样式.html">
            
                
                    <a href="../../First/CSS/边框样式.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.2.</b>
                        
                        边框样式
                    </a>
            
            
        </li>
    
        <li class="chapter active" data-level="2.2.3" data-path="First/CSS/背景样式.html">
            
                
                    <a href="../../First/CSS/背景样式.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.3.</b>
                        
                        背景样式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.4" data-path="First/CSS/元素样式.html">
            
                
                    <a href="../../First/CSS/元素样式.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.4.</b>
                        
                        元素样式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.5" data-path="First/CSS/段落样式.html">
            
                
                    <a href="../../First/CSS/段落样式.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.5.</b>
                        
                        段落样式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.6" data-path="First/CSS/浮动.html">
            
                
                    <a href="../../First/CSS/浮动.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.6.</b>
                        
                        浮动
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.7" data-path="First/CSS/网页常见定位.html">
            
                
                    <a href="../../First/CSS/网页常见定位.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.7.</b>
                        
                        网页常见定位
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.8" data-path="First/CSS/盒子模型.html">
            
                
                    <a href="../../First/CSS/盒子模型.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.8.</b>
                        
                        盒子模型
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.3" data-path="First/CSS/SCSS预处理.html">
            
                
                    <a href="../../First/CSS/SCSS预处理.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.</b>
                        
                        sass预处理用法
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.4" data-path="First/CSS/animate常见用法.html">
            
                
                    <a href="../../First/CSS/animate常见用法.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.4.</b>
                        
                        animate动画
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.5" data-path="First/CSS/媒体查询.html">
            
                
                    <a href="../../First/CSS/媒体查询.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.5.</b>
                        
                        媒体查询
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.6" data-path="First/CSS/Bootstrap框架栅格化系统.html">
            
                
                    <a href="../../First/CSS/Bootstrap框架栅格化系统.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.6.</b>
                        
                        Bootstrap框架栅格化系统
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.7" data-path="First/CSS/flexbox弹性盒子.html">
            
                
                    <a href="../../First/CSS/flexbox弹性盒子.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.7.</b>
                        
                        flexbox弹性盒子
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    


            
            <li class="divider"></li>
            <li>
                <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
                    Published with GitBook
                </a>
            </li>
            
        </ul>
    </nav>
</div>

    <div class="book-body">
        <div class="body-inner">
            <div class="book-header" role="navigation">
    <!-- Actions Left -->
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../../" >Introduction</a>
    </h1>
</div>

            <div class="page-wrapper" tabindex="-1" role="main">
                <div class="page-inner">
                
                
                    <section class="normal" id="section-">
                    
                        <h1 id="&#x80CC;&#x666F;&#x6837;&#x5F0F;">&#x80CC;&#x666F;&#x6837;&#x5F0F;</h1>
<h2 id="&#x80CC;&#x666F;&#x989C;&#x8272;backgroundcolor">&#x80CC;&#x666F;&#x989C;&#x8272;(background-color)</h2>
<pre><code class="lang-css">    <span class="hljs-rule"><span class="hljs-attribute">background-color </span>:<span class="hljs-value"> <span class="hljs-function">transparent</span>(&#x989C;&#x8272;&#x53D8;&#x900F;&#x660E;) | color </span></span>;
</code></pre>
<p>&#x517C;&#x5BB9;&#x6027;:IE6.0+, Firefox2.0+, Chrome4.0+, Safari6.0+, Opera15.0+</p>
<blockquote>
<p>&#x6CE8;&#x610F;:</p>
<ul>
<li>&#x5F53;&#x540C;&#x65F6;&#x5B9A;&#x4E49;&#x4E86;&#x80CC;&#x666F;&#x989C;&#x8272;&#x548C;&#x80CC;&#x666F;&#x56FE;&#x50CF;&#x65F6;&#xFF0C;&#x80CC;&#x666F;&#x56FE;&#x50CF;&#x8986;&#x76D6;&#x5728;&#x80CC;&#x666F;&#x989C;&#x8272;&#x4E4B;&#x4E0A;</li>
</ul>
</blockquote>
<h2 id="&#x80CC;&#x666F;&#x56FE;&#x7247;backgroundimage">&#x80CC;&#x666F;&#x56FE;&#x7247;(background-image)</h2>
<pre><code class="lang-css">    <span class="hljs-rule"><span class="hljs-attribute">background-image </span>:<span class="hljs-value"> none | url ( url ) </span></span>;
</code></pre>
<blockquote>
<p>&#x6CE8;&#x610F;:</p>
<ul>
<li>&#x5F53;&#x540C;&#x65F6;&#x5B9A;&#x4E49;&#x4E86;&#x80CC;&#x666F;&#x989C;&#x8272;&#x548C;&#x80CC;&#x666F;&#x56FE;&#x50CF;&#x65F6;&#xFF0C;&#x80CC;&#x666F;&#x56FE;&#x50CF;&#x8986;&#x76D6;&#x5728;&#x80CC;&#x666F;&#x989C;&#x8272;&#x4E4B;&#x4E0A;</li>
</ul>
</blockquote>
<h2 id="&#x80CC;&#x666F;&#x5E73;&#x94FA;backgroundrepeat">&#x80CC;&#x666F;&#x5E73;&#x94FA;(background-repeat)</h2>
<pre><code class="lang-css">    <span class="hljs-rule"><span class="hljs-attribute">background-repeat </span>:<span class="hljs-value"> repeat | no-repeat | repeat-x | repeat-y </span></span>;
</code></pre>
<p>&#x517C;&#x5BB9;&#x6027;:IE6.0+, Firefox2.0+, Chrome4.0+, Safari6.0+, Opera15.0+</p>
<blockquote>
<p>&#x5C5E;&#x6027;</p>
<ul>
<li>repeat-x&#xFF1A; &#x80CC;&#x666F;&#x56FE;&#x50CF;&#x5728;x&#x8F74;&#x4E0A;&#x5E73;&#x94FA; </li>
<li>repeat-y&#xFF1A; &#x80CC;&#x666F;&#x56FE;&#x50CF;&#x5728;y&#x8F74;&#x4E0A;&#x5E73;&#x94FA; </li>
<li>repeat&#xFF1A; &#x80CC;&#x666F;&#x56FE;&#x50CF;&#x5728;x&#x8F74;&#x548C;y&#x8F74;&#x5E73;&#x94FA; </li>
<li>no-repeat&#xFF1A; &#x80CC;&#x666F;&#x56FE;&#x50CF;&#x4E0D;&#x5E73;&#x94FA; </li>
<li>round&#xFF1A; &#x80CC;&#x666F;&#x56FE;&#x50CF;&#x81EA;&#x52A8;&#x7F29;&#x653E;&#x76F4;&#x5230;&#x9002;&#x5E94;&#x4E14;&#x586B;&#x5145;&#x6EE1;&#x6574;&#x4E2A;&#x5BB9;&#x5668;&#x3002;(&#x4F18;&#x96C5;&#x5E73;&#x94FA;)&#xFF08;CSS3&#x65B0;&#x5C5E;&#x6027;&#xFF09; </li>
<li>space&#xFF1A; &#x80CC;&#x666F;&#x56FE;&#x50CF;&#x4EE5;&#x76F8;&#x540C;&#x7684;&#x95F4;&#x8DDD;&#x5E73;&#x94FA;&#x4E14;&#x586B;&#x5145;&#x6EE1;&#x6574;&#x4E2A;&#x5BB9;&#x5668;&#x6216;&#x67D0;&#x4E2A;&#x65B9;&#x5411;&#x3002;&#xFF08;CSS3&#x65B0;&#x5C5E;&#x6027;&#xFF09;</li>
</ul>
</blockquote>
<h2 id="&#x80CC;&#x666F;&#x5B9A;&#x4F4D;backgroundposition">&#x80CC;&#x666F;&#x5B9A;&#x4F4D;(background-position)</h2>
<pre><code class="lang-css">    <span class="hljs-rule"><span class="hljs-attribute">background-position </span>:<span class="hljs-value"> &#x6C34;&#x5E73;&#x4F4D;&#x7F6E;  &#x5782;&#x76F4;&#x4F4D;&#x7F6E;</span></span>;
</code></pre>
<blockquote>
<p>&#x6CE8;&#x610F;</p>
<ol>
<li>&#x5B9A;&#x4F4D;&#x503C;&#x53EF;&#x4EE5;&#x662F;&#x5355;&#x8BCD;</li>
<li>&#x5B9A;&#x4F4D;&#x503C;&#x4E5F;&#x53EF;&#x4EE5;&#x662F;&#x7279;&#x5B9A;&#x7684;&#x50CF;&#x7D20;&#x6216;&#x8005;&#x767E;&#x5206;&#x6BD4;(&#x66F4;&#x52A0;&#x7CBE;&#x786E;)</li>
<li>&#x5982;&#x679C;&#x4F60;&#x4EC5;&#x89C4;&#x5B9A;&#x4E86;&#x4E00;&#x4E2A;&#x5173;&#x952E;&#x8BCD;&#xFF0C;&#x90A3;&#x4E48;&#x7B2C;&#x4E8C;&#x4E2A;&#x503C;&#x5C06;&#x662F;<code>center</code></li>
<li>&#x7B2C;&#x4E00;&#x4E2A;&#x503C;&#x662F;&#x6C34;&#x5E73;&#x4F4D;&#x7F6E;&#xFF0C;&#x7B2C;&#x4E8C;&#x4E2A;&#x503C;&#x662F;&#x5782;&#x76F4;&#x4F4D;&#x7F6E;</li>
</ol>
</blockquote>
<h2 id="&#x80CC;&#x666F;&#x539F;&#x70B9;backgroundorigin">&#x80CC;&#x666F;&#x539F;&#x70B9;(background-origin)</h2>
<blockquote>
<p>&#x524D;&#x63D0;</p>
<ul>
<li>&#x5FC5;&#x987B;&#x4FDD;&#x8BC1;&#x80CC;&#x666F;&#x662F;background-repeat&#x4E3A;no-repeat</li>
</ul>
</blockquote>
<pre><code class="lang-css">    background-origin &#xFF1A; border-box | padding-box | content-box;
</code></pre>
<blockquote>
<p>&#x6CE8;&#x91CA;:</p>
<ul>
<li><code>padding-box</code>&#xFF1A; &#x4ECE;padding&#x533A;&#x57DF;&#xFF08;&#x542B;padding&#xFF09;&#x5F00;&#x59CB;&#x663E;&#x793A;&#x80CC;&#x666F;&#x56FE;&#x50CF;&#x3002; </li>
<li><code>border-box</code>&#xFF1A; &#x4ECE;border&#x533A;&#x57DF;&#xFF08;&#x542B;border&#xFF09;&#x5F00;&#x59CB;&#x663E;&#x793A;&#x80CC;&#x666F;&#x56FE;&#x50CF;&#x3002; </li>
<li><code>content-box</code>&#xFF1A; &#x4ECE;content&#x533A;&#x57DF;&#x5F00;&#x59CB;&#x663E;&#x793A;&#x80CC;&#x666F;&#x56FE;&#x50CF;&#x3002;</li>
</ul>
</blockquote>
<h2 id="&#x80CC;&#x666F;&#x7684;&#x663E;&#x793A;&#x533A;&#x57DF;backgroundclip">&#x80CC;&#x666F;&#x7684;&#x663E;&#x793A;&#x533A;&#x57DF;(background-clip)</h2>
<pre><code class="lang-css">    background-clip &#xFF1A; border-box | padding-box | content-box | text;
</code></pre>
<blockquote>
<p>&#x5C5E;&#x6027;&#x503C;</p>
<ul>
<li><code>padding-box</code>&#xFF1A; &#x4ECE;padding&#x533A;&#x57DF;&#xFF08;&#x4E0D;&#x542B;padding&#xFF09;&#x5F00;&#x59CB;&#x5411;&#x5916;&#x88C1;&#x526A;&#x80CC;&#x666F;&#x3002; </li>
<li><code>border-box</code>&#xFF1A; &#x4ECE;border&#x533A;&#x57DF;&#xFF08;&#x4E0D;&#x542B;border&#xFF09;&#x5F00;&#x59CB;&#x5411;&#x5916;&#x88C1;&#x526A;&#x80CC;&#x666F;&#x3002; </li>
<li><code>content-box</code>&#xFF1A; &#x4ECE;content&#x533A;&#x57DF;&#x5F00;&#x59CB;&#x5411;&#x5916;&#x88C1;&#x526A;&#x80CC;&#x666F;&#x3002; </li>
<li><code>text</code>&#xFF1A; &#x4ECE;&#x524D;&#x666F;&#x5185;&#x5BB9;&#x7684;&#x5F62;&#x72B6;&#xFF08;&#x6BD4;&#x5982;&#x6587;&#x5B57;&#xFF09;&#x4F5C;&#x4E3A;&#x88C1;&#x526A;&#x533A;&#x57DF;&#x5411;&#x5916;&#x88C1;&#x526A;&#xFF0C;&#x5982;&#x6B64;&#x5373;&#x53EF;&#x5B9E;&#x73B0;&#x4F7F;&#x7528;&#x80CC;&#x666F;&#x4F5C;&#x4E3A;&#x586B;&#x5145;&#x8272;&#x4E4B;&#x7C7B;&#x7684;&#x906E;&#x7F69;&#x6548;&#x679C;&#x3002;</li>
</ul>
<p><code>background-clip</code>&#x7528;&#x6CD5;</p>
<ul>
<li>&#x7528;&#x4E8E;&#x8BA9;&#x5B57;&#x4F53;&#x900F;&#x660E;&#x80FD;&#x770B;&#x5230;&#x80CC;&#x666F;&#x989C;&#x8272;&#x6216;&#x56FE;&#x7247;</li>
<li>&#x5173;&#x952E;&#x4EE3;&#x7801;:</li>
</ul>
</blockquote>
<pre><code class="lang-css">    <span class="hljs-rule"><span class="hljs-attribute">-webkit-background-clip</span>:<span class="hljs-value">text </span></span>;  
    <span class="hljs-comment">/*
        &#x5B57;&#x4F53;&#x989C;&#x8272;&#x8BBE;&#x7F6E;&#x4E3A;&#x900F;&#x660E;&#xFF0C;&#x5C31;&#x53EF;&#x4EE5;&#x770B;&#x5230;&#x6587;&#x5B57;&#x80CC;&#x666F;
     * */</span>
    <span class="hljs-rule"><span class="hljs-attribute">color</span>:<span class="hljs-value"> transparent</span></span>;
    <span class="hljs-rule"><span class="hljs-attribute">font-size</span>:<span class="hljs-value"> <span class="hljs-number">100px</span></span></span>;
</code></pre>
<h2 id="&#x80CC;&#x666F;&#x5C3A;&#x5BF8;backgroundsize">&#x80CC;&#x666F;&#x5C3A;&#x5BF8;(background-size)</h2>
<pre><code class="lang-css">    <span class="hljs-rule"><span class="hljs-attribute">background-size</span>:<span class="hljs-value">&#x5BBD;  &#x9AD8;</span></span>;
</code></pre>
<blockquote>
<p>&#x6CE8;&#x91CA;:</p>
<ul>
<li>&#x4E0D;&#x7BA1;&#x662F;&#x8BBE;&#x7F6E;&#x957F;&#x5EA6;&#x503C;&#x6216;&#x8005;&#x662F;&#x767E;&#x5206;&#x6BD4;,&#x5F53;&#x8BBE;&#x7F6E;&#x4E00;&#x4E2A;&#x503C;&#x65F6;&#xFF0C;&#x5C06;&#x5176;&#x4F5C;&#x4E3A;&#x56FE;&#x7247;&#x5BBD;&#x5EA6;&#x503C;&#x6765;&#x7B49;&#x6BD4;&#x7F29;&#x653E;.</li>
<li>&#x5F53;&#x5BBD;&#x9AD8;&#x4E3A;&#x767E;&#x5206;&#x6BD4;&#x65F6;&#xFF0C;&#x4F9D;&#x636E;&#x5F53;&#x524D;&#x5143;&#x7D20;&#x7684;&#x767E;&#x5206;&#x6BD4;&#x53D6;&#x503C;</li>
</ul>
</blockquote>
<h2 id="&#x80CC;&#x666F;&#x7F29;&#x5199;">&#x80CC;&#x666F;&#x7F29;&#x5199;</h2>
<pre><code class="lang-css">    <span class="hljs-rule"><span class="hljs-attribute">background</span>:<span class="hljs-value"> &#x80CC;&#x666F;&#x8272;  &#x80CC;&#x666F;&#x56FE;&#x7247;  &#x80CC;&#x666F;&#x5E73;&#x94FA;&#x65B9;&#x5F0F;  &#x80CC;&#x666F;&#x5B9A;&#x4F4D;
</span></span></code></pre>

                    
                    </section>
                
                
                </div>
            </div>
        </div>

        
        <a href="../../First/CSS/边框样式.html" class="navigation navigation-prev " aria-label="Previous page: 边框样式"><i class="fa fa-angle-left"></i></a>
        
        
        <a href="../../First/CSS/元素样式.html" class="navigation navigation-next " aria-label="Next page: 元素样式"><i class="fa fa-angle-right"></i></a>
        
    </div>
</div>

        
<script src="../../gitbook/app.js"></script>

    
    <script src="../../gitbook/plugins/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-search/lunr.min.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-search/search.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-sharing/buttons.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-fontsettings/buttons.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-livereload/plugin.js"></script>
    

<script>
require(["gitbook"], function(gitbook) {
    var config = {"expandable-chapters-small":{},"highlight":{},"search":{"maxIndexSize":1000000},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"livereload":{}};
    gitbook.start(config);
});
</script>

        
    </body>
    
</html>
